﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="DutyDevolveOnUpdForm.aspx.cs" Inherits="App_Input_DutyDevolveOnUpdForm" Title="移交任务" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="container">
        <div id="title">
            <ul>
                <li id="Li1">
                    <asp:LinkButton ID="LinkButton1" CommandName="btn0" OnCommand="lnkBtn_Command" runat="server"><span>值班登记</span></asp:LinkButton>
                </li>
                <li id="Li2">
                    <asp:LinkButton ID="LinkButton2" CommandName="btn1" OnCommand="lnkBtn_Command" runat="server"><span>工作任务</span></asp:LinkButton>
                </li>
                <li id="Li3">
                    <asp:LinkButton ID="LinkButton3" CommandName="btn2" runat="server" OnCommand="lnkBtn_Command" OnClientClick="return false" CssClass="selectli"><span class="selectspan">移交任务</span></asp:LinkButton>
                </li>
            </ul>
        </div>
    </div>
        <div id="content" class="content1">
            <table border="0" class="table_border_line">
                <tr>
                    <td align="left">
                        <script language="javascript" type="text/javascript">
                            (new TitleBar('SearchBar', '检索条件')).showBar();
                        </script>
                    </td>
                </tr>
            </table>
            <table class="table_border_line" style="background: ffffff">
                <tr>
                    <td style="width: 16px" class="">
                        &nbsp;
                    </td>
                    <td class="" style="width: 128px; height: 26px">
                        工作日期
                    </td>
                    <td class="">
                        <asp:Label ID="labDate" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
            
            <p>&nbsp;</p>

            <table class="table_border_line">
                <tr>
                    <td align="left">
                        <script language="javascript">
                            (new TitleBar('PerformBar', '常规工作安排')).showBar();
                        </script>
                    </td>
                </tr>
            </table>
            <asp:Table ID="TblTemplate" runat="server" CssClass="GridView_table">
                <asp:TableHeaderRow>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="180"><b>工作时间</b></asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue"><b>工作内容</b></asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="120"><b>工作分类</b></asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="150"><b>移交来源</b></asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="150"><b>移交对象</b></asp:TableHeaderCell>
                    <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="60"><b>选择</b></asp:TableHeaderCell>
                </asp:TableHeaderRow>
            </asp:Table>
            
            <p>&nbsp;</p>
            
            
            <table class="table_border_line">
                <tr>
                    <td align="left" style="height: 15px">
                        <script language="javascript">
                            (new TitleBar('PerformBar', '特殊工作安排')).showBar();
                        </script>
                    </td>
                </tr>
            </table>
            
            <asp:GridView ID="GridViewResult" runat="server" AutoGenerateColumns="False"
                DataKeyNames="SpecialId,FromEmployeeId,EmployeeId"  OnRowDataBound="GridViewResult_RowDataBound"
                CssClass="GridView_table" Width="100%" CellSpacing="2" BorderWidth="0px" >
                <Columns>
                    <asp:BoundField HeaderText="分配时间" DataField="SpecialDate">
                        <HeaderStyle CssClass="GridView_head_grayblue" Width="120px" />
                        <ItemStyle CssClass="GridView_item_center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="完成时间" DataField="CompleteDate">
                        <HeaderStyle CssClass="GridView_head_grayblue" Width="120px" />
                        <ItemStyle CssClass="GridView_item_center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="工作内容" DataField="SpecialContent">
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                        <ItemStyle CssClass="GridView_item_left" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="工作分类" DataField="TypeName">
                        <HeaderStyle CssClass="GridView_head_grayblue" Width="60px" />
                        <ItemStyle CssClass="GridView_item_center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="移交类型" DataField="DevolveOnType">
                        <HeaderStyle CssClass="GridView_head_grayblue" Width="60px" />
                        <ItemStyle CssClass="GridView_item_center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="当前负责" DataField="EmployeeName">
                        <HeaderStyle CssClass="GridView_head_grayblue" Width="150px" />
                        <ItemStyle CssClass="GridView_item_center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="移交来源" DataField="FromEmployeeName">
                        <HeaderStyle CssClass="GridView_head_grayblue" Width="150px" />
                        <ItemStyle CssClass="GridView_item_center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="选择">
                        <EditItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </EditItemTemplate>
                        <ItemStyle CssClass="GridView_item_center" Width="60px" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSpecialId" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="移交来源id" Visible="False">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FromEmployeeId") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" Width="150px" />
                        <ItemTemplate>
                            <asp:Label ID="labFromEmployeeId" runat="server" Text='<%# Bind("FromEmployeeId") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle HorizontalAlign="Right" />
                
                 <EmptyDataTemplate>
 
                      <table id="Template" class="GridView_table" border="0">
		                <tr>
			                <th class="GridView_head_grayblue"  style="width:120px;">分配时间</th>
			                <th class="GridView_head_grayblue"  style="width:120px;">完成时间</th>
			                <th class="GridView_head_grayblue"  >工作内容</th>
			                <th class="GridView_head_grayblue" style="width:120px;">工作分类</th>
			                <th class="GridView_head_grayblue"  style="width:150px;">当前负责</th>
			                <th class="GridView_head_grayblue" style="width:150px;">移交来源</th>
			                <th class="GridView_head_grayblue"  style="width:60px;">选择</th>
		                </tr>
	                </table>
            </EmptyDataTemplate>
            
            
            </asp:GridView>

            
             <p>&nbsp;</p>
  
            <div id="panFeedBack" runat="server">
                <table class="table_border_line">
                    <tr>
                        <td align="left">
                            <script language="javascript">
                                (new TitleBar('PerformBar', '移交信息')).showBar();
                            </script>
                        </td>
                    </tr>
                </table>
                <table class="table_border_line" style="background: ffffff">
                    <tr>
                        <td style="width: 16px" class="">
                            &nbsp;
                        </td>
                        <td class="" style="width: 113px; height: 26px">
                            移交对象
                        </td>
                         <td >
                            <asp:TextBox ID="txtEmployeeNo" runat="server" MaxLength="4" Width="55px"></asp:TextBox>
                            <asp:TextBox ID="txtEmployeeName" runat="server"
                             Width="87px"  BackColor="#E0E0E0" BorderColor="#E0E0E0" ForeColor="Black"   contentEditable ="false" ></asp:TextBox>
                             <a  href="#" onclick="javascript:popupEmployeeSearch('<%=txtEmployeeNo.ClientID%>', '<%=txtEmployeeName.ClientID %>' );">
                                 <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
                            </a>
                            
           
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 16px; height: 26px;" class="">
                            &nbsp;
                        </td>
                       <td class="" style="width: 113px; height: 26px">
                        移交类型
                        </td>
                         <td style="height: 26px">
                             <asp:DropDownList ID="dropDevolveType" runat="server" DataTextField="Content" DataValueField="DictNo" >
                             </asp:DropDownList>&nbsp;
                        </td>
                        
                    </tr>
                    <tr>
                        <td style="width: 16px" class="">
                            &nbsp;
                        </td>
                        <td class="" style="width: 113px; height: 26px">
                            注意事项
                        </td>
                        <td class="">
                            <asp:TextBox ID="txtNotice" runat="server" TextMode="MultiLine" Rows="8" Columns="65" />
                        </td>
                    </tr>
                </table>

                <p>&nbsp;</p>
                <p align="center">
                <asp:Button ID="btnSave" runat="server" Text="  确 认  " CssClass="button" OnClick="btnSave_Click" Width="95px" OnClientClick="return confirm('是否移交？')"/>
               
                </p>
            </div>
            <asp:HiddenField ID="hidDutyPerformId" runat="server" />
        </div>
</asp:Content>

